﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity.ModelConfiguration;
using SimpleModel.Model;

namespace SimpleModel.Mapping
{
    public class classinfoMap:EntityTypeConfiguration<classinfo>
    {
        public classinfoMap()
        {
            this.ToTable("classinfo");
            this.HasKey(p => p.id);
            this.Property(p => p.name).IsRequired().HasMaxLength(50);
        }
    }
}
